Question : laravel 9 auth logout not working{{ route('logout') }} showing The GET method is not supported for this route. Supported methods: POST.
Answered by : distinct-donkey-s9bhymp2fvdd
Route::get('logout', function ()
{ auth()->logout(); Session()->flush(); return Redirect::to('/');
})->name('logout');
Source : https://stackoverflow.com/questions/58316731/how-to-logout-with-a-get-request-in-laravel | Last Update : Thu, 29 Dec 22
Question : laravel 9 auth logout not working{{ route('logout') }} showing The GET method is not supported for this route. Supported methods: POST.
Answered by : distinct-donkey-s9bhymp2fvdd
<a href="{{ route('logout') }}">Logout</a>
Source : https://stackoverflow.com/questions/58316731/how-to-logout-with-a-get-request-in-laravel | Last Update : Thu, 29 Dec 22